package com.jing.cloud.service.es;

import com.google.common.base.Strings;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;

import java.util.List;

/**
 * Created by 29017 on 2017/9/23.
 */
public class EsHelper {

    public static BoolQueryBuilder build(List<EsParam> params) {
        BoolQueryBuilder builder = QueryBuilders.boolQuery();
        if (null != params && !params.isEmpty()) {
            for (EsParam param : params) {
                if (Strings.isNullOrEmpty(param.getPKey())) {

                } else {

                }
            }
        }
        return builder;
    }
}
